package com.liangwj.springbootrabbitmq.rabbit.onetoone;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <b>Description:</b> RabbitMQ 接受者 <br/>
 * @author Lingwenjun
 * @date 2019/1/4-15:48
 * @version 1.0
 */
@Component
@RabbitListener(queues = "hello")
public class HelloReceiver {

    @RabbitHandler
    public void process(String hello) {
        System.out.println("Receiver : " + hello);
    }
}
